package jp.co.apl.haven.ao.entity;

import net.java.ao.Entity;
import net.java.ao.OneToMany;
import net.java.ao.Preload;
import net.java.ao.schema.NotNull;
import net.java.ao.schema.Table;

@Table("category")
@Preload({ "name", "sortOrder" })
public interface CategoryEntity extends Entity {

    @NotNull
    String getName();

    void setName(String name);

    Integer sortOrder();

    void setSortOrder(Integer sortOrder);

    @OneToMany
    QuestionEntity[] getQuestions();

    void setEnquete(EnqueteEntity enquete);

}
